package com.mz.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * (OmsOrderInfo)表实体类
 *
 * @author makejava
 * @since 2023-12-13 13:38:31
 */
@Data
@Accessors(chain = true)
public class OmsOrderInfo  {

    @TableId( type= IdType.ASSIGN_ID )
    private Long id;
    //购买人
    private Long userId;
    //总数量
    private Integer goodsAmount;
    //总价格
    private Integer goodsAmountPrice;
    //是否使用优惠券。
    private Integer useCoupon;
    //优惠券id
    private Long couponId;
    //是否团购
    private Integer isGroup;
    //团购id
    private Long groupId;
    //是否秒杀
    private Integer isSeckill;
    //秒杀id
    private Long seckillId;

    //1: 待支付;  2:待收获  3：退换货
    private Integer orderStatus;

    @TableField(exist = false)
    private List<OmsOrderGoods> orderGoodsList;

    @TableLogic
    private Integer delFlag;

    private Long createBy;

    @TableField( fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    private Long updateBy;

    @TableField( fill = FieldFill.UPDATE)
    private Date updateTime;

}

